package com.farsunset.cim.nio.session;

import java.io.Serializable;

/**
 * 集群session
 *
 */
public class ClusterSession implements Serializable {

	private static final long serialVersionUID = 6887449251943734184L;

	private String account;// session绑定的账号
	private String host;// session绑定的服务器IP

	private String gid;// session全局ID
	private int nid;// session在本台服务器上的ID
	private String deviceId;// 客户端设备ID
	private String channel;// 终端设备类型
	private String deviceModel;// 终端设备型号
	private Long bindTime;// 登录时间
	private Long heartbeat;// 心跳时间
	private String deviceToken;//设备token  ios专用	

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}

	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getNid() {
		return nid;
	}

	public void setNid(int nid) {
		this.nid = nid;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getDeviceModel() {
		return deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel;
	}

	public Long getBindTime() {
		return bindTime;
	}

	public void setBindTime(Long bindTime) {
		this.bindTime = bindTime;
	}

	public Long getHeartbeat() {
		return heartbeat;
	}

	public void setHeartbeat(Long heartbeat) {
		this.heartbeat = heartbeat;
	}

}
